package com.ruoyi.system.domain.quality;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 质量缺陷定义对象 quality_defect_definition
 *
 * @author ruoyi
 * @date 2023-03-07
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("quality_defect_definition")
public class QualityDefectDefinition implements Serializable {

private static final long serialVersionUID=1L;


        /** 缺陷等级id */
        @Excel(name = "缺陷等级id")
        @ApiModelProperty("缺陷等级id")
    private String code;

        /** 缺陷名称 */
        @Excel(name = "缺陷名称")
        @ApiModelProperty("缺陷名称")
    private String name;

        /** id */
        @TableId(value = "id")
        @ApiModelProperty("id")
    private Long id;

        /** 缺陷类型id */
        @Excel(name = "缺陷类型id")
        @ApiModelProperty("缺陷类型id")
    private Long typeId;

    @Excel(name = "缺陷类型名称")
    @ApiModelProperty("缺陷类型名称")
    @TableField(exist = false)
    private String typeName;

    /** 部门id */
    @Excel(name = "部门id")
    @ApiModelProperty("部门id")
    private Long deptId;


    @Excel(name = "部门名称")
    @ApiModelProperty("部门名称")
    @TableField(exist = false)
    private String deptName;

    /** 缺陷等级id */
    @Excel(name = "缺陷等级id")
    @ApiModelProperty("缺陷等级id")
    private Long delId;

    @Excel(name = "缺陷等级名称")
    @ApiModelProperty("缺陷等级名称")
    @TableField(exist = false)
    private String delName;

        /** 单位 */
        @Excel(name = "单位")
        @ApiModelProperty("单位")
    private String unit;

        /** 位置 */
        @Excel(name = "位置")
        @ApiModelProperty("位置")
    private String location;

        /** 扣分值 */
        @Excel(name = "扣分值")
        @ApiModelProperty("扣分值")
    private Long deductMarks;

        /** 别名 */
        @Excel(name = "别名")
        @ApiModelProperty("别名")
    private String alias;
}
